package com.xnew.register.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xnew.aes.SecurityParameter;
import com.xnew.exception.CustomException;

@Controller
@RequestMapping(value = "/register",method = RequestMethod.POST)
public class RegisterController {

	@ResponseBody
	@RequestMapping(value = "/exception",method = RequestMethod.POST)
	@SecurityParameter
	public String throwException(HttpServletRequest request){
		throw new CustomException(400, "抛出异常");
	}
}
